home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.7 KB | 118 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _MENUBAR_
- #define _MENUBAR_
-
- #ifndef _MENUBARB_
- #include "MenuBarB.idl"
- #endif
-
- //=====================================================================================
- // Classes defined in this interface
- //=====================================================================================
-
- interface ODMenuBar;
-
- //=====================================================================================
- // Classes used by this interface
- //=====================================================================================
-
- interface ODSession;
- interface ODPart;
-
-
- //=====================================================================================
- // Class ODMenuBar
- //=====================================================================================
-
- #ifdef _PLATFORM_MACINTOSH_
-
- interface ODMenuBar : ODBaseMenuBar
- {
- void InitMenuBar(in ODSession session,
- in ODPlatformMenuBar menuBar);
-
- void AddSubMenu(in ODMenuID menuID,
- in ODPlatformMenu menu,
- in ODPart part);
-
- void RegisterCommand(in ODCommandID command,
- in ODMenuID menu,
- in ODMenuItemID menuItem);
-
- void UnregisterCommand(in ODCommandID command);
-
- void UnregisterAll();
-
- ODBoolean IsCommandRegistered(in ODCommandID command);
-
- ODBoolean IsCommandSynthetic(in ODCommandID command);
-
- ODCommandID GetCommand(in ODMenuID menu,
- in ODMenuItemID menuItem);
-
- void GetMenuAndItem(in ODCommandID command,
- inout ODMenuID menu,
- inout ODMenuItemID menuItem);
-
- void EnableCommand(in ODCommandID cmdNumber,
- in ODBoolean enable);
-
- void CheckCommand(in ODCommandID cmdNumber,
- in ODBoolean check);
-
- void EnableAndCheckCommand(in ODCommandID cmdNumber,
- in ODBoolean enable,
- in ODBoolean check) ;
-
- /* $$$$$ Should these types be IDLized, or should I remove these methods?
- void SetItemString(in ODCommandID cmdNumber,
- in ConstStr255Param itemString);
-
- void GetItemString(in ODCommandID cmdNumber,
- out Str255 itemString);
- */
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit,
- Purge,
- Release,
-
- Display,
- AddMenuLast,
- AddMenuBefore,
- RemoveMenu,
- GetMenu,
- Copy;
-
- releaseorder:
- InitMenuBar,
- AddSubMenu,
- RegisterCommand,
- UnregisterCommand,
- UnregisterAll,
- IsCommandRegistered,
- IsCommandSynthetic,
- GetCommand,
- GetMenuAndItem,
- EnableCommand,
- CheckCommand,
- EnableAndCheckCommand,
- SetItemString,
- GetItemString;
-
- majorversion = 1; minorversion = 0;
-
-
- };
- #endif //# __SOMIDL__
-
- };
-
- #endif //# _PLATFORM_MACINTOSH_
-
- #endif //# _MENUBAR_
-